Conversation
|
General comment (not diff-anchored — this file isn't touched by this PR, so GitHub won't let me attach it to a line):
This class's |
|
General comment (not diff-anchored — no test files are touched by this PR): Missing test coverage for the fixed code path Neither |
|
All thee comments AI generated - human review forthcoming. |
I will create a separate JIRA issue for this. |
|
|
Added a regression test for this in c350a58: It builds an irregularly inflected variant entry ("creb") of a base entry ("seek") that has two MSAs, invokes the private |
Change-Id: I60967f8053f07355f03c3b0a320791d1880d1822
Change-Id: I2223a0b3b3be5d4831cb2d25c591dcf4f47a0afb
Change-Id: Ida91b219515634f14ba83f594d226f68d5b16585
TryCreateParseMorph must use the msa hvo encoded in the MSI DbRef (lexEntryHvo.refIndex.msaHvo) for an irregularly inflected variant, not just fall back to the variant's first/main sense, since that can be the wrong MSA when the underlying entry has more than one. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Extends the DbRef-parsing test to cover a variant with two EntryRefsOS, each targeting a different base entry that itself has two MSAs. This checks both halves of the "lexEntryHvo.refIndex.msaHvo" encoding: the refIndex picking the right LexEntryRef, and the msaHvo picking the right MSA within it, not just the single-ref case. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Case 4 in the TryCreateParseMorph doc comment still described the pre-LT-22422 2-part "y.index" encoding. Update it to describe the current 3-part "y.i.z" format (LexEntry hvo, LexEntryRef index, and the specific MSA hvo), matching what ProcessMsaHvo actually parses. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
johnml1135
left a comment
There was a problem hiding this comment.
Looks good - just make sure the new JIRA issue is linked.
johnml1135
left a comment
There was a problem hiding this comment.
@johnml1135 reviewed 3 files and all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on AndyBlack).
|
New JIRA issue: https://jira.sil.org/browse/LT-22607 |
This turned out to be a continuation of LT-22422 "XAmple can incorrectly report success for a variant referring to an entry with multiple MSA" The fix there took care of Try a Word, but not what fed into the parser filer. This fixes that.
The result from XAmple can include MSI elements like these:
which have three parts: the lex entry hvo, the lex ref hvo. and the msa hvo. We were ignoring the msa hov when passing the XAmple parsing result to the parser filer.
This change is